package com.quyeying.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 推广视频表
 * </p>
 *
 * @author skx
 * @since 2022-10-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tbl_popularize_video")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class TblPopularizeVideoEntity extends Model<TblPopularizeVideoEntity> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 商品id
     */
    private String pid;

    /**
     * 商户id
     */
    private Long merchantId;

    /**
     * 视频
     */
    private String video;

    /**
     * 视频描述
     */
    private String videoDesc;

    /**
     * 浏览量
     */
    private Integer browseNum;

    /**
     * 点赞量
     */
    private Integer agreeNum;

    /**
     * 分享量
     */
    private Integer shareNum;

    /**
     * 浏览量
     */
    private Integer sort;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


    /**
     * 商品名称
     * @return
     */
    @TableField(exist = false)
    private String productName;

    /**
     * 商品封面
     * @return
     */
    @TableField(exist = false)
    private String productCover;

    /**
     * 视频封面
     */
    @TableField(exist = false)
    private String coverUrl;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
